module kongzhi_disp(
input k5,
input k6,
input k7,
input [7:0] hour,//
input [7:0] min,
input [7:0] sec,
input [7:0] hour_set,//
input [7:0] min_set,
input [7:0] sec_set,
input [7:0] year,//
input [7:0] mon,
input [7:0] day,
input [7:0] year_set,//
input [7:0] mon_set,
input [7:0] day_set,
input [7:0] hour_beemp,//
input [7:0] min_beemp,
input [7:0] sec_beemp,

output reg[7:0] count2,
output reg[7:0] count1,
output reg[7:0] count0

);

always @(*)
case({k5,k6,k7})
0:{count2,count1,count0}={hour,min,sec};
1:{count2,count1,count0}={hour_set,min_set,sec_set};
2:{count2,count1,count0}={year,mon,day};
3:{count2,count1,count0}={year_set,mon_set,day_set};
4:{count2,count1,count0}={hour_beemp,min_beemp,sec_beemp};
default:{count2,count1,count0}={hour,min,sec};

endcase
endmodule